﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
using DomainApplication.Models;

namespace ApplicationDAL
{
    public class ApplicationServiceContext : DbContext
    {
        public ApplicationServiceContext() : base("name=ApplicationServiceContext")
        {
//TODO : Database.Log should be connected on a logger with DI
            this.Database.Log = s => System.Diagnostics.Debug.WriteLine(s);
        }

        public System.Data.Entity.DbSet<ApplicationDAL.Models.DesignPattern> DesignPatterns { get; set; }
        public System.Data.Entity.DbSet<ApplicationDAL.Models.DesignRule> DesignRules { get; set; }
        public System.Data.Entity.DbSet<ApplicationDAL.Models.ExternalLink> ExternalLinks { get; set; }

    }
}
